package cn.itsource.system.mapper;

import cn.itsource.system.domain.Employee;

import cn.itsource.system.query.EmployeeQuery;


import java.util.List;

public interface EmployeeMapper {
    void add(Employee employee);
    void update(Employee employee);
    void delete(Long id);   
    Employee getOne(Long id);
    List<Employee> getAll();

    void patchDelete(Long[] ids);

    List<Employee> pageQuery(EmployeeQuery query);

    List<String> getRoleNameByEmpId(Long id);

    List<Long> getRoleByEmpId(Long id);

    void delEmpRoles(Long id);

    void addEmpRoles(Employee employee);
}
